package com.zhu.mapper;


import com.zhu.pojo.Type;
import com.zhu.pojo.Way;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface WayMapper {
    List<Way> getAll(int userId);

    List<Way> getAllByAdmin();

    Way getById(int id);

    int add(Way way);

    int update(Way way);

    int delete(int id);

}

